package com.example.file_management.pojo.material;

import com.example.file_management.pojo.material.Task;
//import jakarta.persistence.*;
import lombok.Data;  // Lombok注解：生成getter、setter、toString、equals和hashCode方法
import lombok.NoArgsConstructor; // Lombok注解：生成无参构造函数
import lombok.AllArgsConstructor; // Lombok注解：生成全参构造函数

import java.math.BigDecimal;
import java.time.LocalDateTime;

//@Entity
//@Table(name = "assessment_table")
// TODO：注意需要检查驼峰映射
@Data  // Lombok注解：自动生成getter、setter、toString、equals、hashCode方法
@NoArgsConstructor // Lombok注解：生成无参构造函数
@AllArgsConstructor
public class Assessment {

//    @Id
//    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer assessmentID;

//    @ManyToOne
//    @JoinColumn(name = "TaskID", nullable = false)
    private Task task;

//    @Column(nullable = false, length = 255)
    private String assessmentName;

//    @Column(columnDefinition = "TEXT", nullable = false)
    private String assessmentCriteria;

    private BigDecimal score;

//    @Column(nullable = false)
    private LocalDateTime assessmentDate;

//    @Column(nullable = false, length = 255)
    private String assessor;
}